﻿namespace BloggerBackup
{
    using BloggerBackup.My.Resources;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Reflection;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public sealed class AboutBox : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("BlogLinkLabel")]
        private LinkLabel _BlogLinkLabel;
        [AccessedThroughProperty("CodeplexLinkLabel")]
        private LinkLabel _CodeplexLinkLabel;
        [AccessedThroughProperty("LabelCompanyName")]
        private Label _LabelCompanyName;
        [AccessedThroughProperty("LabelCopyright")]
        private Label _LabelCopyright;
        [AccessedThroughProperty("LabelProductName")]
        private Label _LabelProductName;
        [AccessedThroughProperty("LabelVersion")]
        private Label _LabelVersion;
        [AccessedThroughProperty("LogoPictureBox")]
        private PictureBox _LogoPictureBox;
        [AccessedThroughProperty("OKButton")]
        private Button _OKButton;
        [AccessedThroughProperty("TableLayoutPanel")]
        private System.Windows.Forms.TableLayoutPanel _TableLayoutPanel;
        [AccessedThroughProperty("TextBoxDescription")]
        private TextBox _TextBoxDescription;
        private IContainer components;

        [DebuggerNonUserCode]
        public AboutBox()
        {
            base.Load += new EventHandler(this.AboutBox_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.InitializeComponent();
        }

        private void AboutBox_Load(object sender, EventArgs e)
        {
            Assembly executingAssembly = Assembly.GetExecutingAssembly();
            this.LabelProductName.Text = executingAssembly.GetName().Name;
            this.LabelVersion.Text = executingAssembly.GetName().Version.ToString();
            foreach (Attribute attribute in Attribute.GetCustomAttributes(executingAssembly))
            {
                if (attribute is AssemblyTitleAttribute)
                {
                    AssemblyTitleAttribute attribute2 = (AssemblyTitleAttribute) attribute;
                    this.Text = string.Format("About {0}", attribute2.Title);
                }
                else if (attribute is AssemblyDescriptionAttribute)
                {
                    AssemblyDescriptionAttribute attribute3 = (AssemblyDescriptionAttribute) attribute;
                    this.TextBoxDescription.Text = attribute3.Description;
                }
                else if (attribute is AssemblyCompanyAttribute)
                {
                    AssemblyCompanyAttribute attribute4 = (AssemblyCompanyAttribute) attribute;
                    this.LabelCompanyName.Text = attribute4.Company;
                }
                else if (attribute is AssemblyCopyrightAttribute)
                {
                    AssemblyCopyrightAttribute attribute5 = (AssemblyCopyrightAttribute) attribute;
                    this.LabelCopyright.Text = attribute5.Copyright;
                }
            }
        }

        private void BlogLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                Process.Start(BloggerBackup.My.Resources.Resources.BlogURL);
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                ProjectData.ClearProjectError();
            }
        }

        private void CodeplexLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                Process.Start(BloggerBackup.My.Resources.Resources.CodeplexURL);
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                ProjectData.ClearProjectError();
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (((disposing && (this.components != null)) ? 1 : 0) != 0)
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(AboutBox));
            this.TableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
            this.LogoPictureBox = new PictureBox();
            this.LabelProductName = new Label();
            this.LabelVersion = new Label();
            this.LabelCopyright = new Label();
            this.LabelCompanyName = new Label();
            this.TextBoxDescription = new TextBox();
            this.BlogLinkLabel = new LinkLabel();
            this.CodeplexLinkLabel = new LinkLabel();
            this.OKButton = new Button();
            this.TableLayoutPanel.SuspendLayout();
            ((ISupportInitialize) this.LogoPictureBox).BeginInit();
            this.SuspendLayout();
            this.TableLayoutPanel.ColumnCount = 2;
            this.TableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33f));
            this.TableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 67f));
            this.TableLayoutPanel.Controls.Add(this.LogoPictureBox, 0, 0);
            this.TableLayoutPanel.Controls.Add(this.LabelProductName, 1, 0);
            this.TableLayoutPanel.Controls.Add(this.LabelVersion, 1, 1);
            this.TableLayoutPanel.Controls.Add(this.LabelCopyright, 1, 2);
            this.TableLayoutPanel.Controls.Add(this.LabelCompanyName, 1, 3);
            this.TableLayoutPanel.Controls.Add(this.TextBoxDescription, 1, 6);
            this.TableLayoutPanel.Controls.Add(this.BlogLinkLabel, 1, 5);
            this.TableLayoutPanel.Controls.Add(this.CodeplexLinkLabel, 1, 4);
            this.TableLayoutPanel.Controls.Add(this.OKButton, 1, 7);
            this.TableLayoutPanel.Dock = DockStyle.Fill;
            Point point = new Point(9, 9);
            this.TableLayoutPanel.Location = point;
            this.TableLayoutPanel.Name = "TableLayoutPanel";
            this.TableLayoutPanel.RowCount = 7;
            this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333611f));
            this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333611f));
            this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333611f));
            this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333611f));
            this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 8.330278f));
            this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 8.333611f));
            this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50.00167f));
            this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 20f));
            this.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 20f));
            Size size = new Size(0x1d5, 0x162);
            this.TableLayoutPanel.Size = size;
            this.TableLayoutPanel.TabIndex = 0;
            this.LogoPictureBox.Dock = DockStyle.Fill;
            this.LogoPictureBox.Image = (Image) manager.GetObject("LogoPictureBox.Image");
            point = new Point(3, 3);
            this.LogoPictureBox.Location = point;
            this.LogoPictureBox.Name = "LogoPictureBox";
            this.TableLayoutPanel.SetRowSpan(this.LogoPictureBox, 7);
            size = new Size(0x94, 0x143);
            this.LogoPictureBox.Size = size;
            this.LogoPictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
            this.LogoPictureBox.TabIndex = 0;
            this.LogoPictureBox.TabStop = false;
            this.LabelProductName.Dock = DockStyle.Fill;
            point = new Point(160, 0);
            this.LabelProductName.Location = point;
            Padding padding = new Padding(6, 0, 3, 0);
            this.LabelProductName.Margin = padding;
            size = new Size(0, 0x11);
            this.LabelProductName.MaximumSize = size;
            this.LabelProductName.Name = "LabelProductName";
            size = new Size(0x132, 0x11);
            this.LabelProductName.Size = size;
            this.LabelProductName.TabIndex = 0;
            this.LabelProductName.Text = "Product Name";
            this.LabelProductName.TextAlign = ContentAlignment.MiddleLeft;
            this.LabelVersion.Dock = DockStyle.Fill;
            point = new Point(160, 0x1b);
            this.LabelVersion.Location = point;
            padding = new Padding(6, 0, 3, 0);
            this.LabelVersion.Margin = padding;
            size = new Size(0, 0x11);
            this.LabelVersion.MaximumSize = size;
            this.LabelVersion.Name = "LabelVersion";
            size = new Size(0x132, 0x11);
            this.LabelVersion.Size = size;
            this.LabelVersion.TabIndex = 0;
            this.LabelVersion.Text = "Version";
            this.LabelVersion.TextAlign = ContentAlignment.MiddleLeft;
            this.LabelCopyright.Dock = DockStyle.Fill;
            point = new Point(160, 0x36);
            this.LabelCopyright.Location = point;
            padding = new Padding(6, 0, 3, 0);
            this.LabelCopyright.Margin = padding;
            size = new Size(0, 0x11);
            this.LabelCopyright.MaximumSize = size;
            this.LabelCopyright.Name = "LabelCopyright";
            size = new Size(0x132, 0x11);
            this.LabelCopyright.Size = size;
            this.LabelCopyright.TabIndex = 0;
            this.LabelCopyright.Text = "Copyright";
            this.LabelCopyright.TextAlign = ContentAlignment.MiddleLeft;
            this.LabelCompanyName.Dock = DockStyle.Fill;
            point = new Point(160, 0x51);
            this.LabelCompanyName.Location = point;
            padding = new Padding(6, 0, 3, 0);
            this.LabelCompanyName.Margin = padding;
            size = new Size(0, 0x11);
            this.LabelCompanyName.MaximumSize = size;
            this.LabelCompanyName.Name = "LabelCompanyName";
            size = new Size(0x132, 0x11);
            this.LabelCompanyName.Size = size;
            this.LabelCompanyName.TabIndex = 0;
            this.LabelCompanyName.Text = "Company Name";
            this.LabelCompanyName.TextAlign = ContentAlignment.MiddleLeft;
            this.TextBoxDescription.Dock = DockStyle.Fill;
            point = new Point(160, 0xa5);
            this.TextBoxDescription.Location = point;
            padding = new Padding(6, 3, 3, 3);
            this.TextBoxDescription.Margin = padding;
            this.TextBoxDescription.Multiline = true;
            this.TextBoxDescription.Name = "TextBoxDescription";
            this.TextBoxDescription.ReadOnly = true;
            this.TextBoxDescription.ScrollBars = ScrollBars.Both;
            size = new Size(0x132, 0xa1);
            this.TextBoxDescription.Size = size;
            this.TextBoxDescription.TabIndex = 0;
            this.TextBoxDescription.TabStop = false;
            this.TextBoxDescription.Text = manager.GetString("TextBoxDescription.Text");
            this.BlogLinkLabel.AutoSize = true;
            point = new Point(0x9d, 0x87);
            this.BlogLinkLabel.Location = point;
            this.BlogLinkLabel.Name = "BlogLinkLabel";
            size = new Size(0xeb, 13);
            this.BlogLinkLabel.Size = size;
            this.BlogLinkLabel.TabIndex = 2;
            this.BlogLinkLabel.TabStop = true;
            this.BlogLinkLabel.Text = "Greg's Cool [Insert Clever Name] of the Day blog";
            this.CodeplexLinkLabel.AutoSize = true;
            point = new Point(0x9d, 0x6c);
            this.CodeplexLinkLabel.Location = point;
            this.CodeplexLinkLabel.Name = "CodeplexLinkLabel";
            size = new Size(0x6d, 13);
            this.CodeplexLinkLabel.Size = size;
            this.CodeplexLinkLabel.TabIndex = 3;
            this.CodeplexLinkLabel.TabStop = true;
            this.CodeplexLinkLabel.Text = "CodePlex Project Site";
            this.OKButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
            this.OKButton.DialogResult = DialogResult.Cancel;
            point = new Point(0x187, 0x14c);
            this.OKButton.Location = point;
            this.OKButton.Name = "OKButton";
            size = new Size(0x4b, 0x13);
            this.OKButton.Size = size;
            this.OKButton.TabIndex = 0;
            this.OKButton.Text = "&OK";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x1e7, 0x174);
            this.ClientSize = size;
            this.Controls.Add(this.TableLayoutPanel);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "AboutBox";
            padding = new Padding(9);
            this.Padding = padding;
            this.ShowInTaskbar = false;
            this.StartPosition = FormStartPosition.CenterParent;
            this.Text = "About Text Template";
            this.TableLayoutPanel.ResumeLayout(false);
            this.TableLayoutPanel.PerformLayout();
            ((ISupportInitialize) this.LogoPictureBox).EndInit();
            this.ResumeLayout(false);
        }

        private void OKButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        internal virtual LinkLabel BlogLinkLabel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._BlogLinkLabel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                LinkLabelLinkClickedEventHandler handler = new LinkLabelLinkClickedEventHandler(this.BlogLinkLabel_LinkClicked);
                if (this._BlogLinkLabel != null)
                {
                    this._BlogLinkLabel.LinkClicked -= handler;
                }
                this._BlogLinkLabel = value;
                if (this._BlogLinkLabel != null)
                {
                    this._BlogLinkLabel.LinkClicked += handler;
                }
            }
        }

        internal virtual LinkLabel CodeplexLinkLabel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CodeplexLinkLabel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                LinkLabelLinkClickedEventHandler handler = new LinkLabelLinkClickedEventHandler(this.CodeplexLinkLabel_LinkClicked);
                if (this._CodeplexLinkLabel != null)
                {
                    this._CodeplexLinkLabel.LinkClicked -= handler;
                }
                this._CodeplexLinkLabel = value;
                if (this._CodeplexLinkLabel != null)
                {
                    this._CodeplexLinkLabel.LinkClicked += handler;
                }
            }
        }

        internal virtual Label LabelCompanyName
        {
            [DebuggerNonUserCode]
            get
            {
                return this._LabelCompanyName;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._LabelCompanyName = value;
            }
        }

        internal virtual Label LabelCopyright
        {
            [DebuggerNonUserCode]
            get
            {
                return this._LabelCopyright;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._LabelCopyright = value;
            }
        }

        internal virtual Label LabelProductName
        {
            [DebuggerNonUserCode]
            get
            {
                return this._LabelProductName;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._LabelProductName = value;
            }
        }

        internal virtual Label LabelVersion
        {
            [DebuggerNonUserCode]
            get
            {
                return this._LabelVersion;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._LabelVersion = value;
            }
        }

        internal virtual PictureBox LogoPictureBox
        {
            [DebuggerNonUserCode]
            get
            {
                return this._LogoPictureBox;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._LogoPictureBox = value;
            }
        }

        internal virtual Button OKButton
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OKButton;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.OKButton_Click);
                if (this._OKButton != null)
                {
                    this._OKButton.Click -= handler;
                }
                this._OKButton = value;
                if (this._OKButton != null)
                {
                    this._OKButton.Click += handler;
                }
            }
        }

        internal virtual System.Windows.Forms.TableLayoutPanel TableLayoutPanel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TableLayoutPanel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TableLayoutPanel = value;
            }
        }

        internal virtual TextBox TextBoxDescription
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TextBoxDescription;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TextBoxDescription = value;
            }
        }
    }
}

